import { createApp } from 'vue'
import './assets/css/style.less'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'

// dataV插件引入
// import  * as DataV from '@dataview/datav-vue3';
// import  {setClassNamePrefix} from '@dataview/datav-vue3';

import piniaPersist from 'pinia-plugin-persist'
// 分页组件
import pagination from '@/components/pagination/index.vue'
import { vPermission, vPermissionbar } from '@/utils/permissionDirective.js'

// 右击菜单
// https://gitee.com/longxinziyan/vue3-menus#https://gitee.com/link?target=https%3A%2F%2Fcodepen.io%2Fxfy520%2Fpen%2FyLXNqzy
import { directive } from 'vue3-menus';
const pinia = createPinia()

pinia.use(piniaPersist)

const app = createApp(App)
app.directive('permission', vPermission);
app.directive('permissionbar', vPermissionbar);
app.directive('menus', directive);
app.component('pagination', pagination)
app.use(pinia).use(router).mount('#app')
